package com.yummy.mapper;

import com.yummy.dto.DishDto;
import com.yummy.dto.QueryDishVo;
import com.yummy.entity.Dish;
import com.yummy.common.CommonMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author yinbo
* @description 针对表【dish(菜品管理)】的数据库操作Mapper
* @createDate 2022-08-29 23:07:35
* @Entity com.yummy.entity.Dish
*/
@Repository
public interface DishMapper extends CommonMapper<Dish> {
    List<Dish> selectAllByCondition(QueryDishVo queryDishVo);

    Dish selectByDishId(@Param("id") String id);

    int insertDish(@Param("dish") Dish dish);

    int updateByDish(Dish dish);

	long insertDishDto(DishDto dishDto);

    int updateStatusById(@Param("id") String id, @Param("status") String status);

    int deleteByDishPrimaryKeys(@Param("abc") String... ids);

}
